import request from '@/utils/request'

// 获取医生列表
export function getConUserList(data) {
  return request({
    url: '/info/HYHS_getConUserList',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 获取会诊信息
export function selectConsultations(data) {
  return request({
    url: '/consultation/selectConsultations',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 发起会诊
export function startConsultations(data) {
  return request({
    url: '/startConsultations',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 邀请其他医生
export function inviteConsultations(data) {
  return request({
    url: '/inviteConsultations',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 进入会议
export function acceptConsultations(data) {
  return request({
    url: '/acceptConsultations',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 结束会诊
export function forceEndConsultations(data) {
  return request({
    url: '/forceEndConsultations',
    method: 'post',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
